home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
PROGRAMM
/
DB_CLIPP
/
2626.ZIP
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1991-03-03
|
8KB
|
201 lines
ECHO OFF
CLS
ECHO ╔══ ╔══ ╔═╗ ╔═╗ ╔══ ═╦═
ECHO ╠═ ╠═ ╠═╣ ╠═╣ ╠═ ║
ECHO ║ ╚══ ║ ║ ║ ║ ╚══ ║
ECHO ═════════════════════════════════════════════════════════════════════
ECHO Installation - FLatfile Application Generator System Program
ECHO ═════════════════════════════════════════════════════════════════════
IF EXIST 4P.ID GOTO BDDSK
IF EXIST 3F.ID GOTO BDDSK
SET ID=ERR
IF %2x==x SET DSK=A
IF %2x==x GOTO CONT1
IF %2==a SET DSK=A
IF %2==A SET DSK=A
IF %2==b SET DSK=B
IF %2==B SET DSK=B
IF %DSK%==A GOTO CONT1
IF %DSK%==B GOTO CONT1
GOTO err
:CONT1
IF EXIST %DSK%:4P.ID SET ID=4P
IF EXIST %DSK%:3F.ID SET ID=3F
IF %ID%==ERR GOTO BDDSK1
IF %ID%==4P ECHO for FoxPro and Dbase IV
IF %ID%==3F ECHO for FoxBase and Dbase III+
ECHO NOTE! Installed Program Requires Approximately 400 KB of
ECHO Disk Space! Program will be installed on default device
IF %1x==x GOTO err
IF %1==D SET FLV=D
IF %1==d SET FLV=D
IF %1==f SET FLV=F
IF %1==F SET FLV=F
IF %FLV%==D GOTO Dflv
IF %FLV%==F GOTO Fflv
GOTO err
:Fflv
IF %ID%==4P ECHO You're Installing the FoxPro version.
IF %ID%==3F ECHO You're Installing the FoxBase version.
GOTO CONT3
:Dflv
IF %ID%==4P ECHO You're Installing the Dbase IV version.
IF %ID%==3F ECHO You're Installing the Dbase III+ version.
:CONT3
ECHO The system will be installed from your %DSK% drive.
IF NOT EXIST \FLAGS\MAIN\MASTER.DBF GOTO NEW
ECHO ╔═════════════════════════════════════════════════════════════════════╗
ECHO ║ FLAGS HAS BEEN INSTALLED...THIS WILL OVERWRITE ║
ECHO ║ WHAT YOU'VE DONE SO FAR....THINK ABOUT IT!! ║
ECHO ╚═════════════════════════════════════════════════════════════════════╝
:NEW
ECHO.
ECHO To Quit Now, hold down [Ctrl] Key and Press [C]
PAUSE
ECHO.
ECHO Please wait a few moments.....
ECHO.
MD \FLAGS > nul
CD \FLAGS
%DSK%:FLAGS -SFERRET -O -D
COPY %DSK%:INSTALL.BAT MAIN
COPY %DSK%:README.1ST MAIN
:CLNUP
IF %FLV%==D GOTO clnD
IF %ID%==3F GOTO clnFb
REM FoxPro Cleanup...nuke DBIV
DEL *.DBO
DEL MAIN\*.NDX
DEL HOUSE\*.NDX
DEL HSE_TYPE\*.NDX
GOTO DONE
:ClnFb
REM FoxBase Cleanup...nuke DBIII+
DEL *.PRG
DEL MAIN\*.NDX
DEL HOUSE\*.NDX
GOTO DONE
:CLND
IF %ID%==3F GOTO cln3
REM Dbase IV Cleanup... Nuke FoxPro
DEL *.FXP
DEL MAIN\*.IDX
DEL HOUSE\*.IDX
DEL HSE_TYPE\*.IDX
GOTO DONE
:Cln3
REM Dbase III+ Cleanup... Nuke FoxBase
DEL *.FOX
DEL MAIN\*.IDX
DEL HOUSE\*.IDX
GOTO DONE
:ERR
cls
ECHO ╔═════════════════════════════════════════════════════════════════════╗
ECHO ║ Error!! Error!! As in, you didn't do it right! ║
ECHO ║ Make sure you're on the drive you want FLAGS to be ║
ECHO ║ Installed on (like C:, for Example). When you're ║
ECHO ║ ready to install, you Enter: ║
ECHO ║ ║
ECHO ║ (1):Install (2) (1) ║
ECHO ║ ║
ECHO ║ Where (1) is the letter for the disk you've got the ║
ECHO ║ Flags in (either A or B) ║
ECHO ║ ║
IF %ID%==3F GOTO EX1
IF %ID%==4P GOTO EX2
ECHO ║ And (2) is either a "F" for Fox or a "D" for Dbase. ║
GOTO CONT4
:EX1
ECHO ║ And (2) is either a "F" for FoxBase or a "D" for Dbase III+. ║
GOTO CONT4
:EX2
ECHO ║ And (2) is either a "F" for FoxPro or a "D" for Dbase IV. ║
:CONT4
ECHO ║ Example: For those of you who are using a "B" drive (and you ║
IF %ID%==3F GOTO EX3
IF %ID%==4P GOTO EX4
ECHO ║ know who you are), who are installing a Dbase, type in: ║
GOTO CONT5
:EX3
ECHO ║ know who you are), who are installing Dbase III+, type in: ║
GOTO CONT5
:EX4
ECHO ║ know who you are), who are installing Dbase IV, type in: ║
:CONT5
ECHO ║ B:Install D B ║
ECHO ║ ║
ECHO ║ Or, for those of you who are using an "A" drive who are ║
IF %ID%==3F GOTO EX5
IF %ID%==4P GOTO EX6
ECHO ║ installing Fox, type in: ║
GOTO CONT6
:EX5
ECHO ║ installing FoxBase, type in: ║
GOTO CONT6
:EX6
ECHO ║ installing FoxPro, type in: ║
GOTO CONT6
:CONT6
ECHO ║ A:Install F A ║
ECHO ║ ║
ECHO ║ Now, Try Again!! ║
ECHO ╚═════════════════════════════════════════════════════════════════════╝
GOTO bye
:DONE
cls
ECHO ╔═════════════════════════════════════════════════════════════════════╗
IF %FLV%==D GOTO Dst
IF %ID%==3F GOTO Fb
ECHO ║ You've Installed the FoxPro Version of Flags (you dog, you) ║
ECHO ║ To Begin the Flags system, type in "FoxPro Flags" from the \FLAGS ║
GOTO CONT7
:Fb
ECHO ║ You've Installed the FoxBase Version of Flags (you dog, you) ║
ECHO ║ To Begin the Flags system, type in "FoxPlus Flags" from the \FLAGS ║
GOTO CONT7
:DST
IF %ID%==3F GOTO D3
ECHO ║ You've Installed the Dbase IV Version of Flags (you dog, you) ║
ECHO ║ To Begin the Flags system, type in "Dbase Flags" from the \FLAGS ║
GOTO CONT7
:D3
ECHO ║ You've Installed the Dbase III+ Version of Flags (you dog, you) ║
ECHO ║ To Begin the Flags system, type in "Dbase Flags" from the \FLAGS ║
:CONT7
ECHO ║ Directory. Remember to put a Path to Your xBase Product or you ║
ECHO ║ won't get very far (as in nowhere). ║
ECHO ║ ║
ECHO ║ Remember, Flags works under: ║
ECHO ║ ║
ECHO ║ Dbase III+ V1.1, Dbase IV V1.1, FoxBase, and FoxPro V1.02 ║
ECHO ║ See the files \FLAGS\MAIN\README.DOC and README.1st for some ║
ECHO ║ simple documentation. Registered users get a lot more. ║
ECHO ║ ║
ECHO ║ ║
ECHO ║ FLAGS is from: ║
ECHO ║ dbF Software Productions ║
ECHO ║ PO Box 37194 ║
ECHO ║ Cleveland, Ohio 44137-0194 ║
ECHO ╚═════════════════════════════════════════════════════════════════════╝
GOTO BYE
:BDDSK
ECHO ╔═════════════════════════════════════════════════════════════════════╗
ECHO ║ Error!! Error!! As in, you didn't do it right! ║
ECHO ║ Make sure you're on the drive you want FLAGS to be ║
ECHO ║ Installed on (like C:, for Example), not the floppy ║
ECHO ║ you're installing from... ║
ECHO ╚═════════════════════════════════════════════════════════════════════╝
GOTO BYE
:BDDSK1
ECHO ╔═════════════════════════════════════════════════════════════════════╗
ECHO ║ Error!! Error!! As in, you didn't do it right! ║
ECHO ║ I don't think that there's a valid FLAGS installation disk ║
ECHO ║ sitting in your %DSK% drive right now...check it out and try ║
ECHO ║ again... ║
ECHO ╚═════════════════════════════════════════════════════════════════════╝
:bye
SET ID=
SET DSK=
SET FLV=